local more1__shi__quanlve = fk.CreateSkill {
  name = "more1__shi__quanlve",
}

Fk:loadTranslationTable{
  ["more1__shi__quanlve"] = "权略",
  [":more1__shi__quanlve"] = "每回合限一次，你可以弃置全部手牌，然后视为使用一张普通锦囊牌。",
  ["#more1__shi__quanlve-choice"] = "选择一张普通锦囊牌使用",
  ["$more1__shi__quanlve1"] = "",
  ["$more1__shi__quanlve2"] = "",
}


more1__shi__quanlve:addEffect("viewas", {
  pattern = ".",
  prompt = function (self, player, selected_cards, selected)
    return "#more1__shi__quanlve-choice"
  end,
  interaction = function(self, player)
    local names, all_names = {} , {}
    for _, id in ipairs(Fk:getAllCardIds()) do
      local card = Fk:getCardById(id)
      if card:isCommonTrick() and not card.is_derived then
        table.insertIfNeed(all_names, card.name)
        if not player:prohibitUse(card) and
        ((Fk.currentResponsePattern == nil and player:canUse(card)) or
        (Fk.currentResponsePattern and Exppattern:Parse(Fk.currentResponsePattern):match(card))) then
          table.insertIfNeed(names, card.name)
        end
      end
    end
    return UI.ComboBox {choices = names, all_choices = all_names}
  end,
  card_filter = Util.FalseFunc,
  view_as = function(self, player, cards)
    if not self.interaction.data then return end
    local card = Fk:cloneCard(self.interaction.data)
    card.skillName = more1__shi__quanlve.name
    return card
  end,
  before_use = function(self, player)
    player:throwAllCards("h", more1__shi__quanlve.name)
  end,
  enabled_at_play = function(self, player)
    return not player:isKongcheng() and player:usedSkillTimes(self.name, Player.HistoryTurn) == 0
  end,
  enabled_at_response = function(self, player, response)
    return not player:isKongcheng() and player:usedSkillTimes(self.name, Player.HistoryTurn) == 0
  end,
})














return more1__shi__quanlve
